home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <!-- Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. -->
- <!-- All rights reserved. -->
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
- <xsl:template match="/">
- <HTML>
- <xsl:apply-templates/>
- </HTML>
- </xsl:template>
- <xsl:template match="photos">
- <xsl:apply-templates/>
- </xsl:template>
- <xsl:template match="album">
- <xsl:apply-templates select="imagelist"/>
- </xsl:template>
- <xsl:template match="imagelist">
- <xsl:apply-templates select="imageinfo"/>
- </xsl:template>
- <xsl:template match="imageinfo">
- <xsl:element name="ixfile">
- <xsl:attribute name="fname"><xsl:value-of select="html_info/@fname"/></xsl:attribute>
- <head>
-
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
- <meta name="copyright" content="Copyright (C) 1995-2002 Jasc Software, Inc. and its licensors. All rights reserved."/>
-
- </head>
-
- <body bgcolor="#FFFFFF" text="#336633">
- <table width="800" border="2" bordercolor="#996600" align="center" background="graphics/woodboard.jpg"><tr><td><br kludge=""/><table border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#996600" background="">
- <tr><td><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFCC" background="">
- <tr>
- <td background="borders/tleft.gif"><br kludge=""/></td>
- <td height="20" background="borders/top.gif"><br kludge=""/></td>
- <td background="borders/tright.gif"><br kludge=""/></td>
- </tr>
- <tr>
- <td width="20" background="borders/left.gif"><br kludge=""/></td>
- <td><IMG border="0"><xsl:attribute name="src"><xsl:value-of select="@fname"/></xsl:attribute><xsl:attribute name="width"><xsl:value-of select="imagesize/@width"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="imagesize/@height"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="title"/></xsl:attribute></IMG></td>
- <td width="20" background="borders/right.gif"><br kludge=""/></td>
- </tr>
- <tr>
- <td background="borders/bleft.gif"><br kludge=""/></td>
- <td height="20" background="borders/bottom.gif"><br kludge=""/></td>
- <td background="borders/bright.gif"><br kludge=""/></td>
- </tr>
- </table></td></tr>
- </table>
-
- <br kludge=""/>
-
- <table border="1" cellspacing="0" cellpadding="0" align="center" bordercolor="#996600" width="350" height="50" background="">
- <tr><td><table border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#ffffff" background="">
- <tr>
- <td background="borders/tleft.gif"><br kludge=""/></td>
- <td colspan="3" height="20" background="borders/top.gif"><br kludge=""/></td>
- <td background="borders/tright.gif"><br kludge=""/></td>
- </tr>
- <tr>
- <td width="20" background="borders/left.gif"><br kludge=""/></td>
- <td width="54" valign="top"><br kludge=""/><xsl:apply-templates select="previous"/></td>
- <td width="200"><div align="center"><table width="200" border="0" cellspacing="0" cellpadding="0" background="">
- <tr>
- <td width="21"><xsl:choose>
- <xsl:when test="audio_info/@fname[. != '']">
- <div align="center"><xsl:apply-templates select="audio_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose></td>
- <td valign="top"><div align="center"><font face="Arial, Helvetica, sans-serif" size="4" ><b><xsl:value-of select="title"/></b></font></div></td>
- <td width="21"><xsl:choose>
- <xsl:when test="movie_info/@fname[. != '']">
- <div align="center"><xsl:apply-templates select="movie_info"/></div>
- </xsl:when>
- <xsl:otherwise>
- <div align="center"><img border="0" src="graphics/transparenth120.gif" width="1" height="1"/></div>
- </xsl:otherwise>
- </xsl:choose></td>
- </tr>
- <tr>
- <td colspan="3"><div align="center"><font face="Arial, Helvetica, sans-serif" size="2" ><xsl:apply-templates select="description">
- <!-- recursively apply this template to them -->
- <xsl:template>
- <xsl:copy>
- <xsl:apply-templates select="@* | * | comment() | pi() | text()"/>
- </xsl:copy>
- </xsl:template>
- </xsl:apply-templates></font></div></td>
- </tr>
- </table></div></td>
- <td width="54" valign="top"><br kludge=""/><xsl:apply-templates select="next"/></td>
- <td width="20" background="borders/right.gif"><br kludge=""/></td>
- </tr>
- <tr>
- <td background="borders/bleft.gif"><br kludge=""/></td>
- <td colspan="3" height="20" background="borders/bottom.gif"><br kludge=""/></td>
- <td background="borders/bright.gif"><br kludge=""/></td>
- </tr>
- </table></td></tr>
- </table><br kludge=""/></td></tr></table>
- </body>
- </xsl:element>
- </xsl:template>
- <xsl:template match="audio_info">
- <xsl:if match="audio_info[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/sound.gif"/></A>
- </xsl:if>
- </xsl:template>
- <xsl:template match="movie_info">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img border="0" src="graphics/movie.gif" width="24" height="28"/></A>
- </xsl:template> <xsl:template match="previous">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="previous[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img src="buttons/back3.gif" width="54" height="19" border="0"/></A>
- </xsl:when>
- <xsl:otherwise>
- <img src="buttons/back3.gif" width="54" height="19" border="0"/>
-
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- <xsl:template match="next">
- <xsl:value-of/>
- <xsl:choose>
- <xsl:when match="next[@fname != '']">
- <A><xsl:attribute name="href"><xsl:value-of select="@fname"/></xsl:attribute>
- <img src="buttons/forward3.gif" width="54" height="19" border="0"/></A>
- </xsl:when>
- <xsl:otherwise>
- <img src="buttons/forward3.gif" width="54" height="19" border="0"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
- </xsl:stylesheet>
-
-